home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
cenvid
/
dostime.bat
< prev
next >
Wrap
DOS Batch File
|
1995-03-28
|
538b
|
23 lines
@echo off
REM *********************************************
REM *** DosTime - CEnviD example program for ***
REM *** ver.1 showing the DOS system time ***
REM *********************************************
CEnviD %0.bat
GOTO CENVI_EXIT
printf("Displaying DOS system time; press any key to end:\n")
while( !kbhit() ) {
reg.ah = 0x2C
interrupt(0x21,reg)
printf("\r%2d:%02d:%02d.%02d",reg.ch,reg.cl,reg.dh,reg.dl)
}
while( kbhit() ) getch() // flush keyboard buffer
printf("\n")
:CENVI_EXIT